package com.cqjtu.drive.service;

import com.cqjtu.drive.pojo.Enroll;
import com.cqjtu.drive.response.Response;

import java.util.List;
import java.util.Map;

public interface EnrollService {

    Response<Enroll> getEnrollById(String enId);

    Response<String> insertEnroll(Enroll enroll);

    Response<String> updateEnroll(Enroll enroll);

    Response<String> deleteEnroll(String enId);

    Response<List<Enroll>> getAllEnrolls();

    Response<List<Enroll>> getAllEnrollsWithAccept0();
    Response<List<Enroll>> getAllEnrollsWaitRecord();
    Response<String> updateEnrollAccept(String enId,String newAccept);
    Response<List<Enroll>> getAllEnrollsBySId(String sId);
    Response<Enroll> getNewestEnrollsBySId(String sId);
    Response<String> recordGrade(Map<String,String> map);

}
